package com.campusnews.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.campusnews.annotation.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lqc
 * @since 2021-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CommentAgree对象", description="")
public class CommentAgree implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "点赞评论表")
    @TableId(value = "commetager_id", type = IdType.AUTO)
    private Integer commetagerId;

    @ApiModelProperty(value = "点赞一级评论Id")
    private Integer firstId;

    @ApiModelProperty(value = "点赞二级评论Id")
    private Integer secondId;

    @ApiModelProperty(value = "点赞用户")
    private Integer userId;

    @ApiModelProperty(value = "帖子Id")
    private Integer inviId;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @IgnoreSwaggerParameter
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @IgnoreSwaggerParameter
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @IgnoreSwaggerParameter
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @IgnoreSwaggerParameter
    private Date updateTime;


}
